package model;

import org.bson.types.ObjectId;

import com.google.code.morphia.dao.BasicDAO;
import com.google.code.morphia.query.Query;

import entity.Source;

public class SourcePageModel extends BasicDAO<Source, ObjectId> {

	// stop at 174804
	public SourcePageModel() {
		super(DBConnection.getMongo(), DBConnection.getMorphia(), DBConnection
				.getDatabase());
//		ds.ensureIndexes();
	}

	public Source get() {
		Query<Source> q = ds.find(Source.class);
		return q.get();
	}

	public static void main(String[] args) {
	
	}
}
